public class Link {

    public String source;
    public String target;
    public String delay;
    public boolean isFinished;//CUSTOM

    public Link(String source, String target) {
        this.source = source;
        this.target = target;
    }

    @Override
    public String toString() {
        return "link[" + source + "-" + target + "]";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Link link = (Link) o;

        if (!source.equals(link.source)) return false;
        if (!target.equals(link.target)) return false;
        return delay.equals(link.delay);
    }

    @Override
    public int hashCode() {
        int result = source.hashCode();
        result = 31 * result + target.hashCode();
        result = 31 * result + delay.hashCode();
        return result;
    }
}